<?php

namespace App\Models;

use App\Events\Study\DeletedEvent;
use Illuminate\Database\Eloquent\Model;

class Study extends Model
{
    /**
     * 定义不可批量填充字段
     *
     * @var array
     * Date: 2018/5/29
     * @author Sam
     */
    protected $guarded = [
        'id'
    ];

    /**
     * 定义模型事件
     *
     * @var array
     * Date: 09/05/2018
     * @author George
     */
    protected $dispatchesEvents = [
        'deleted'=>DeletedEvent::class
    ];

}
